﻿$.fn.ResizeDetailGrid = function () {
//    var iframe = $(self.frameElement);
//    if (iframe.attr("class") == "iFrameDetailGrid") {
//        iframe.height($("#DetailGrid").height());
//        var parentiFrame = $(parent.frameElement);
//        if (parentiFrame.attr("class") == "iFrameDetailGrid") {
//            parent.$().ResizeDetailGrid();
//        }
//    }
}

function InitGrid() {
//    var mainTable = $("#DetailGrid_DXMainTable").css('table-layout', 'auto').width("auto");
//    mainTable.find("[id*='DetailGrid_DXDataRow'] td").children("div").remove();
//    $("#DetailGrid_DXMainTable").find("#DetailGrid_DXHeadersRow td").width("auto");
//    //$("#DetailGrid_DXMainTable").children("tr").children("td").width("auto");
//    $("#DetailGrid_DXMainTable colgroup").remove();

//    if (parent.$("#StdQueryGrid_dxdt0_ctl00_CC > div").length == 1) {
//        parent.$("#StdQueryGrid_dxdt0_ctl00").width("auto");
//        parent.$("#StdQueryGrid_dxdt0_ctl00_C0").width($("#DetailGrid").width());
//    }
}
InitGrid();
$().ResizeDetailGrid();